<%@ taglib prefix="s" uri="/struts-tags"%>

<style>


#headerRight {
	position: relative;
}
</style> 

 <div id="headerRight">
	<s:set name="adminLoginCheck" value="%{#session.adminLogin}" />
	<s:if test="%{#adminLoginCheck!=null}">
	<div  style="right:30px;" >
	<s:form action="adminLogout">
		<s:submit value="Logout" type="button" />
	</s:form></div>
	
	</s:if>
<s:else>
<%-- 	<s:property value="%{#adminLoginCheck}" />
 --%>
	<s:form action="adminLogin">
		<s:textfield label="User Name" name="username" />
		<s:password label="Passowrd" name="password" />
		<s:submit />
	</s:form>
</s:else>

</div> 




<%-- <s:set name="loginCheck" value="%{#session.login}" />
<s:if test="%{#loginCheck!=null}">

</s:if>
<s:else>
	<s:actionerror />
</s:else>



	<s:form action="logout">
		<s:submit value="Logout" type="button" />
	</s:form> --%>
